home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_300 / 304_01 / matrix < prev    next >
Text File  |  1990-02-12  |  284b  |  15 lines

  1. .sc #
  2. .fi
  3.     An involved example of the use of printer controls
  4. would be to create a 3 by 3 matrix:
  5. .br
  6. .sp 1
  7. MATRIX = ^+^+^(|1#2#3|^)^-^-|4#5#6|^)^-^-|7#8#9|^+^+
  8.  
  9. .nf
  10. which should produce (with a half-spacing) printer:
  11.  
  12.          |1 2 3|
  13. MATRIX = |4 5 6|
  14.          |7 8 9|
  15.